<?php

namespace app\zftapi\controller;

use app\BaseController;
use think\facade\Db;

class CommunityGate extends BaseController
{
    public function getInfo(){
        $id=request()->get("gate_id");
        $info=Db::table("community_zft_gate")->where("id",$id)->find();
        if(!empty($info)){
            parent::sendOutput($info);
        }else{
            parent::sendOutput(["msg"=>"配置错误"],500);
        }
        parent::sendOutput($id);
    }

}